import { Body, Controller, Get, Param, Post, Query } from '@nestjs/common';
import { LargeModel2Service } from './large-model2.service';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { isNoAuth } from 'src/utils/decorator/jwt.decorator';
// import { KsDto } from './dto/ks.dto';
// import { DataBaseDto } from './dto/data-base.dto';
// import { TaskDto } from './dto/task.dto';
import { ImportDataDto } from './dto/importData.dto';
import { DataInfoDto } from './dto/dataInfo.dto';
import { DataStatusDto } from './dto/dataStatus.dto';

@ApiTags('大模型')
@Controller('large-model')
@isNoAuth()
export class LargeModel2Controller {
  constructor(private readonly largeModelService: LargeModel2Service) {}

  @ApiOperation({
    summary: '数据集导入',
  })
  @Post('importDataBase')
  async importDataBase(@Query() params: ImportDataDto) {
    return await this.largeModelService.importDataBase(params);
  }

  @ApiOperation({
    summary: '数据集详情',
  })
  @Post('dataInfoDto')
  async dataInfoDto(@Query() params: DataInfoDto) {
    return await this.largeModelService.dataInfoDto(params);
  }
  @ApiOperation({
    summary: '数据集状态',
  })
  @Post('dataStatusDto')
  async dataStatusDto(@Query() params: DataStatusDto) {
    return await this.largeModelService.dataStatusDto(params);
  }
}
